package cn.edu.sjtu.se.dslab.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Util {
	public static Date string2Date(String dateString) {
		Date date;
		SimpleDateFormat myFmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			date = myFmt.parse(dateString + " 01:00:00");
			return date;
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
			return null;
		}
	}
}
